Skip to content

[NEW] Support new message parser#3313

Merged
diegolmello merged 56 commits into
developfrom
new.support-new-message-parser
Oct 20, 2021
Merged

[NEW] Support new message parser#3313
diegolmello merged 56 commits into
developfrom
new.support-new-message-parser

Conversation

@gerzonc

@gerzonc gerzonc commented Aug 3, 2021

Copy link
Copy Markdown
Contributor

Proposed changes

Adds support for the new message parser.

Issue(s)

How to test or reproduce

In order to test this feature you need to check that you have the new message parser enabled from the server global preferences and in the app go to Profile > Preferences > Enable Message Parser

Screenshots

Types of changes

  • Bugfix (non-breaking change which fixes an issue)
  • Improvement (non-breaking change which improves a current function)
  • New feature (non-breaking change which adds functionality)
  • Documentation update (if none of the other choices apply)

Checklist

  • I have read the CONTRIBUTING doc
  • I have signed the CLA
  • Lint and unit tests pass locally with my changes
  • I have added tests that prove my fix is effective or that my feature works (if applicable)
  • I have added necessary documentation (if applicable)
  • Any dependent changes have been merged and published in downstream modules

Further comments

Some edge cases may fail because they're not yet part of the message parser (e.g. formatted links)

@lgtm-com

lgtm-com Bot commented Aug 14, 2021

Copy link
Copy Markdown

This pull request introduces 1 alert when merging 71aed0c into 49f936b - view on LGTM.com

new alerts:

  • 1 for Useless assignment to local variable

@gerzonc gerzonc marked this pull request as ready for review August 20, 2021 16:27
@lgtm-com

lgtm-com Bot commented Aug 20, 2021

Copy link
Copy Markdown

This pull request introduces 1 alert when merging 68e2fb1 into 14fd12c - view on LGTM.com

new alerts:

  • 1 for Useless assignment to local variable

Comment thread app/views/UserPreferencesView/index.js
Comment thread app/containers/markdown/MessageBody/BigEmoji.js Outdated
Comment thread app/containers/markdown/MessageBody/BigEmoji.js Outdated
Comment thread app/containers/markdown/MessageBody/BigEmoji.js Outdated
Comment thread app/containers/markdown/MessageBody/BigEmoji.js Outdated
Comment thread app/containers/markdown/MessageBody/Bold.js Outdated
Comment thread app/containers/markdown/MessageBody/CodeLine.js Outdated
Comment thread app/containers/markdown/MessageBody/Heading.js Outdated
Comment thread app/containers/markdown/MessageBody/Heading.js Outdated
Comment thread app/containers/message/Content.js Outdated
Comment thread app/containers/markdown/MessageBody/index.js Outdated

@diegolmello diegolmello left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@diegolmello diegolmello merged commit 76a9951 into develop Oct 20, 2021
@diegolmello diegolmello deleted the new.support-new-message-parser branch October 20, 2021 16:33
ivnxyz pushed a commit to NextiaDev/Rocket.Chat.ReactNative that referenced this pull request May 26, 2023
* Add message parser to profile view and db

* Add md to db

* Remove changes to Xcode project

* Remove message-parser lib and add enable message parser field to User model

* Fix message parser

* Remove admin enableMessageParserEarlyAdoption

* Add NewMarkdown component

* Remove NewMarkdown component and add specific components for new message parser

* Add new parser components

* Fix BigEmoji

* Updated components and added more Code components

* update components and add storybooks

* Update Code component and add it to storybooks

* Update Mention component

* Minor tweaks

* Add server message parser validation

* Renamed folder, add @rocket.chat/message-parser, migrate some files to TypeScript

* Migrate components to TypeScript and fix styling

* Change interfaces and add TaskListComponent and styles

* Fix new markdown and styles

* Fix inlinecode

* Stop using server setting

* Use enableMessageParserEarlyAdoption on mapStateToProps

* Remove React.FC

* add link to bold, italic and strike

* Update parser components

* Fix missing components

* Minor tweak

* Fix lint and add getCustomEmojis

* Fix customEmojis

* Update emojis

* Minor tweak

* disconnect markdown from store

* Use @rocket.chat/message-parser@0.30.0

* Fix link style

* Unify lists and styles

* Remove style prop

* Use big emoji as a normal token

* Remove unnecessary memo

* Fix code styles

* Update tests

* Conditionally create renderer

* Use Context instead of prop drill

* Fix Link component

* Fix plain text regression and update tests

Co-authored-by: Diego Mello <diegolmello@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants